import 'package:flutter/foundation.dart';

import 'ts_shared_normalview_container.dart';

class TSSharedNormalViewUtil {
  static TSSharedNormalViewContainer? _sharedNormalViewContainer;

  static TSSharedNormalViewContainer get sharedNormalViewContainer {
    if (_sharedNormalViewContainer == null) {
      debugPrint("初始化 _sharedNormalViewContainer");
      _sharedNormalViewContainer = TSSharedNormalViewContainer();
    } else {
      debugPrint("复用 _sharedNormalViewContainer");
    }

    return _sharedNormalViewContainer!;
  }

  static TSSharedNormalViewContainerState? _sharedNormalViewContainerState;
  static TSSharedNormalViewContainerState get sharedNormalViewContainerState {
    if (_sharedNormalViewContainerState == null) {
      debugPrint("初始化 _sharedNormalViewContainerState");
      _sharedNormalViewContainerState = TSSharedNormalViewContainerState();
    } else {
      debugPrint("复用 _sharedNormalViewContainerState");
    }

    return _sharedNormalViewContainerState!;
  }
}
